package ldk.app.kotlinweibo.apis

import com.google.gson.JsonObject
import io.reactivex.Observable
import ldk.app.kotlinweibo.apis.beans.StatusListResponse
import retrofit2.http.GET
import retrofit2.http.Query

/**
 * 微博相关的所有接口
 * Created by ldkxingzhe@163.com on 2017/6/16.
 */
interface StatusAPI {
    @GET("statuses/public_timeline.json")
    fun publicTimeLine(@Query("count") count: Int, @Query("page") page: Int): Observable<StatusListResponse>

    @GET("statuses/home_timeline.json")
    fun homeTimeLine(@Query("since_id") sinceId: Long = 0,
                     @Query("max_id") maxId: Long = 0,
                     @Query("count") count: Int = 20,
                     @Query("page") page: Int = 1,
                     @Query("feature") feature: Int = 0,
                     @Query("trim_user") trimUser: Int = 0): Observable<StatusListResponse>
}